<template>
	<view class="content">
		<web-view :webview-styles="webviewStyles" src="http://192.168.4.1/"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
				webviewStyles: {
					progress: {
						color: '#FF3333'
					}
				}
			}
		},
		mounted() {
			console.log(this.loadWifiInfo());
			plus.navigator.setFullscreen(true);
			plus.screen.lockOrientation('landscape-secondary');
			plus.screen.lockOrientation('landscape-primary');
		},
		onLoad() {

		},
		methods: {
			loadWifiInfo() {
				var Context = plus.android.importClass("android.content.Context");
				var WifiManager = plus.android.importClass("android.net.wifi.WifiManager")
				var wifiManager = plus.android.runtimeMainActivity().getSystemService(Context.WIFI_SERVICE);
				var List = plus.android.importClass("java.util.List");
				var ArrayList = plus.android.importClass("java.util.ArrayList");
				var ScanResult = plus.android.importClass("android.net.wifi.ScanResult");
				var wifis = new ArrayList();
				wifis = wifiManager.getScanResults();
				return wifis;
			}
		}
	}
</script>

<style>

</style>
